<?php echo form_open($this->uri->uri_string()); ?>
<?php echo $toolbar?>
<div class="acc_list_filter">
	<table class="box_search">
		<tr>
			<td><span><?php echo  lang('filter_status_label');?></span>
				<br/> <?php echo  form_dropdown('filter_status', $filter_statuses, $filter_status, '');?> </td>
			<td><?php echo  form_submit('submit', lang('search_label'), 'class="btn_admin"');?></td>
		</tr>
	</table>
</div>
	<table class="table table-striped table-bordered mediaTable activeMediaTable">
	  <thead>
		  <tr>
			<th>ID</th>
			<th><?php echo  lang('user_last_name');?></th>
			<th><?php echo  lang('user_email');?></th>
			<th><?php echo  lang('role_actions_label');?></th>
		  </tr>
	  </thead>
	  <tbody>
		  <? foreach ($users as $user):?>
		  <tr>
			<td><?php echo  $user->id; ?></td>
			<td><?php echo  $user->name; ?></td>
			<td><?php echo  $user->email; ?></td>
			<td align="center"><input <?php if ($user->role == $role->name) echo "checked = 'checked'"; ?>  type="checkbox" name="action_to[]" value="<?php echo  $user->id; ?>" /></td>
		  </tr>
	  </tbody>
	  <? endforeach;?>
	</table>
<?php echo  form_hidden('role_id', $role->id)?>
<?php echo form_close(); ?>